package com.earthea.scaffold.common.validator;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = PasswordValidatorImpl.class)
public @interface PasswordValidator {
    String message() default "密码必须包含大小写字母、数字和特殊符号";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
